using System.Collections.Generic;
using System.Linq;

namespace Voodoo.Sauce.Privacy
{
	internal class PrivacyInfoList : List<PrivacyInfo>
	{
		internal string[] GetNames()
		{
			return this.Select((PrivacyInfo info) => info.Name).ToArray();
		}

		internal IEnumerable<string> GetPrivacyPolicyUrls()
		{
			return this.Select((PrivacyInfo info) => info.PrivacyPolicyUrl).Distinct();
		}
	}
}
